/**
 * 
 */
package s2h.view;

import com.opensymphony.xwork2.ActionSupport;

import s2h.controller.DepartmentController;
import s2h.model.DepartmentModel;

/**
 * @author WIN7
 *
 */
public class DepartmentView extends ActionSupport {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private DepartmentModel demodel;
	/**
	 * @return the demodel
	 */
	public DepartmentModel getDemodel() {
		return demodel;
	}
	/**
	 * @param demodel the demodel to set
	 */
	public void setDemodel(DepartmentModel demodel) {
		this.demodel = demodel;
	}
	
	public String addDepartment() {
		DepartmentController decontrol = new DepartmentController();
		decontrol.add(getDemodel());
		return SUCCESS;
		
		
	}
}
